import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('BaseComponent')
/**
 * 基础场景
 */
export class BaseComponent extends Component {

    /** 组件数据 */
    private data: Map<string, any> = new Map();

    protected onLoad(): void {
        this.Init();
    }

    protected onEnable(): void {
        this.OnShow();
    }

    protected onDisable(): void {
        app.logManager.info("隐藏")
    }

    protected onDestroy(): void {
        app.logManager.info("销毁")
    }

    protected Init() {
        app.logManager.info("初始化")
    }

    protected OnShow() {
        app.logManager.info("显示")
    }

}


